package com.xw.model;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import javax.persistence.*;
import javax.ws.rs.GET;

@Getter
@Setter
public class Topup {
    @Id
    private String id;

    /**
     * 用户id
     */
    @Column(name = "user_id")
    private String userId;

    /**
     * 金额
     */
    private Double money;

    /**
     * 充值方式 1.支付宝 2. 微信
     */
    @Column(name = "topup_type")
    private Integer topupType;

    /**
     * 充值状态 0.未支付 1.已支付
     */
    @Column(name = "topup_status")
    private Integer topupStatus;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    private String transactionId;

    private String ordersId;
}